package gov.pbc.nn.uflo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Index;

import com.bstek.dorado.annotation.PropertyDef;

import gov.pbc.nn.core.entity.BaseEntity;

@Entity
@Table(name = "T_COMMON_OPINION")
public class CommonOpinion extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Column(name = "TYPE_")
	@PropertyDef(label = "类型", description = "0：全局；1：个人")
	@Index(name = "T_COMMON_OPINION_TYPE_")
	private int type;

	@PropertyDef(label = "所有者")
	@Column(name = "USERNAME_")
	@Index(name = "T_COMMON_OPINION_USERNAME_")
	private String username;

	@PropertyDef(label = "所有者")
	@Column(name = "CNAME_")
	private String cname;

	@PropertyDef(label = "常用意见", description = "常用意见")
	@Column(name = "OPINION_", length = 1024)
	private String opinion;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

}
